package com.oauth.components.client.ui.footer;

import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.DialogBox;
import com.google.gwt.user.client.ui.HTML;
import com.google.gwt.user.client.ui.VerticalPanel;

public class AboutUsDialog extends DialogBox {

	public AboutUsDialog() {
		FooterConstant instance = FooterConstant.INSTANCE;
		setText(instance.linksAboutus());
		setAnimationEnabled(true);
		setGlassEnabled(true);
		VerticalPanel vPanel = new VerticalPanel();
		vPanel.add(new HTML(instance.dscAboutus()));
		Button ok = new Button(instance.dscOk());
		ok.addClickHandler(new ClickHandler() {

			@Override
			public void onClick(ClickEvent pArg0) {
				hide();
			}
		});
		vPanel.add(ok);
		vPanel.setCellHorizontalAlignment(ok, VerticalPanel.ALIGN_CENTER);
		setWidget(vPanel);
	}
}
